<template>
    <view>
			<!-- <button type="primary" @click="gotoIndex">使用name对象跳转</button> -->
	<!-- 		<camera device-position="back" flash="off" @error="error" style="width: 100%; height: 300px;"></camera>
			<button type="primary" @click="takePhoto">拍照</button>
			<view>预览</view>
			<image mode="widthFix" :src="src"></image> -->
	</view>
</template>

<script>

	export default {
	    data() {
	        return {
	            src:""
	        }
	    },
			onLoad(options){
				console.log(options)
			},
	    methods: {
				gotoIndex(){
					// this.$Router.push('index')
					this.$Router.push({ name: 'index', params: { userId: '这里是audio' }})
				}
	        //  takePhoto() {
	        //     const ctx = uni.createCameraContext();
	        //     ctx.takePhoto({
	        //         quality: 'high',
	        //         success: (res) => {
	        //             this.src = res.tempImagePath
	        //         }
	        //     });
	        // },
	        // error(e) {
	        //     console.log(e.detail);
	        // }
	    }
	}
</script>

<style>
</style>
